package com.cx;

import com.cx.framework.AppConfig;
import com.cx.framework.CxApplicationContext;
import com.cx.service.UserService;

/**
 * @Author:cxy
 * @Date:2020/10/11 16:01
 */
public class Test {
    public static void main(String[] args) {
        /**
         * 1.启动Spring 创建bean
         * 2.扫描 需要创建bean的path
         * 3.创建bean  ---  (非 懒加载 的 单例bean)
         */
        CxApplicationContext cxApplicationContext = new CxApplicationContext(AppConfig.class);
        UserService userService = (UserService) cxApplicationContext.getBean("userService");
        userService.test();

    }
}
